﻿@{
    ViewBag.Title = "修改密码";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<script src="~/Assets/global/Plugins/jquery-1.11.0.min.js"></script>
@using DoKnow.CloudEdu.CMS.Host.Models;
@model PwdModel
<!-- BEGIN PAGE HEADER-->
@Html.Partial("_PageHeader", new PageHeader() { Title = "修改密码", Urls = new Dictionary<string, string>() { { "修改密码", "#" } } })
<!-- END PAGE HEADER -->
<div class="portlet-body form">
    <form id="editForm" action="@Url.Action("ChangePWD", "BsUser")" method="post" enctype="multipart/form-data" class="form-horizontal">
        <div style="display: block">
            @Html.HiddenFor(model => model.ID)
        </div>
        <div class="form-body">
            <div class="row">
                <div class="form-group">
                    <label class="control-label col-md-4">登陆用户</label>
                    <div class="col-md-3">
                        <label id="lblUserCode">@Model.Name</label>
                        <span class="help-block"></span>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="form-group">
                    <label class="control-label col-md-4">旧密码</label>
                    <div class="col-md-3">
                        @Html.PasswordFor(model => model.OldPWD, new { @class = "form-control", placeholder = "旧密码" })
                        <span class="help-block"></span>
                    </div>
                    <div class="errorMsg"></div>
                </div>
            </div>
            <div class="row">
                <div class="form-group">
                    <label class="control-label col-md-4">新密码</label>
                    <div class="col-md-3">
                        @Html.PasswordFor(model => model.NewPWD, new { @class = "form-control", placeholder = "新密码", maxlength = "20" })
                        <span class="help-block"></span>
                    </div>
                    <div class="errorMsg"></div>
                </div>
            </div>
            <div class="row">
                <div class="form-group">
                    <label class="control-label col-md-4">确认密码</label>
                    <div class="col-md-3">
                        @Html.PasswordFor(model => model.ConfirmPWD, new { @class = "form-control", placeholder = "新密码", maxlength = "20" })
                        <span class="help-block"></span>
                    </div>
                    <div class="errorMsg"></div>
                </div>
            </div>
            <div class="row">
                <div class="form-group">
                    <label class="control-label col-md-4"></label>
                    <div class="col-md-8">
                        <label id="lblErrorMsg" style="color: red;">@ViewBag.ErrMsg</label>
                    </div>
                </div>
            </div>
            <div class="form-actions" style="margin-top: 5px;">
                <div class="row">
                    <div class="col-md-offset-4 col-md-9">
                        <button id="btnSave" name="btnSave" type="submit" class="btn red">提交</button>
                        <button type="reset" class="btn default">取消</button>
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>